package solitaire.deck;

import java.util.*;
import solitaire.deck.Card.Rank;
import solitaire.deck.Card.Suit;

public class Deck extends CardCollection {
	
	
	
	private static final long serialVersionUID = 83746;
	
	// A collection that holds the cards
	private static final Deck cards = new Deck();
	
	//Cards placed on deck
	
	// Returns a new deck in order, not shuffled.
	public static Deck newDeck()  {
		//cards.clear();
			for (Suit suit : Suit.values())
				for (Rank rank : Rank.values())
					cards.add(new Card(rank, suit));
		
		return cards;
	}
	
	// Shuffes a collection of cards
	public static void shuffle(Deck deck)
	{
		Collections.shuffle(deck);
	}
	
	
}
